package com.hqq.integration.tolerant_reader;

import java.io.Serializable;

/**
 * RainbowFishV2
 * Created by heqianqian on 2017/8/18.
 */
public class RainbowFishV2 extends RainbowFish implements Serializable {
    private static final long serialVersionUID = 1L;

    private boolean sleeping;
    private boolean hungry;
    private boolean angry;

    public RainbowFishV2(String name, int age, int lengthMeters, int weightTons) {
        super(name, age, lengthMeters, weightTons);
    }

    /**
     * Constructor
     */
    public RainbowFishV2(String name, int age, int lengthMeters, int weightTons, boolean sleeping,
                         boolean hungry, boolean angry) {
        this(name, age, lengthMeters, weightTons);
        this.sleeping = sleeping;
        this.hungry = hungry;
        this.angry = angry;
    }

    public boolean getSleeping() {
        return sleeping;
    }

    public boolean getHungry() {
        return hungry;
    }

    public boolean getAngry() {
        return angry;
    }
}
